import request from '@/utils/request'

/**
 * 服务名称
 */
const serviceName = '/basedata'

export function login(data) {
  return request({
    url: `${serviceName}/login`,
    method: 'post',
    data
  })
}

export function getInfo(token) {
  return request({
    url: `${serviceName}/account/info`,
    method: 'get',
    params: { token }
  })
}

export function logout() {
  return request({
    url: `${serviceName}/logout`,
    method: 'post'
  })
}
